//
//  HomeASProductItem.h
//  iOS_Store_V2
//
//  Created by Gary on 26/06/2017.
//  Copyright © 2017 czy. All rights reserved.
//

#define kCellWidth                 (ScreenWidth - 5) / 2
#define kCellHeight                kCellWidth + 90 + 20 + 5 * 3 + 15
#define kImagePadding              3


#import "HomeProductListModel.h"
@class HomeASProductCardItem;

@interface HomeASProductItem : ASBBCollectionViewItem

@property (nonatomic, strong) HomeProductListModel                   *model;

@property (nonatomic, assign) CGFloat                                sectionLeftPadding;

@property (nonatomic, assign) CGFloat                                sectionRightPadding;

@property (copy, readwrite, nonatomic) void (^onViewClickHandler)(id item,ViewActionType actionType);

+(HomeASProductItem *)itemWithModel:(HomeProductListModel *)model
                       clickHandler:(void(^)(HomeASProductItem *item,ViewActionType actionType))clickHandler
                   selectionHandler:(void(^)(HomeASProductItem *item))selectionHandler;

- (HomeASProductCardItem*)parseToCardItem;

@end
